package com.sunbird.crm.dao.sys;

import com.sunbird.crm.entity.sys.TUser;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface TUserMapper {
    int deleteByPrimaryKey(String userCode);

    int insert(TUser record);

    int insertSelective(TUser record);

    TUser selectByPrimaryKey(String userCode);

    TUser selectByUserNameAndPassWord(String usrname ,String password);

    int updateByPrimaryKeySelective(TUser record);

    int updateByPrimaryKey(TUser record);

    //    根据用户查询权限
    TUser selectByPrimaryKey(TUser user);
}